package com.woniuxy.meal.exception.userException;

public enum UserExceptionCode {


    USER_NOT_REGISTER(5001,"该用户不存在"),
    USER_PASSWORD_NOT_MATCH(5002,"密码错误"),
    USER_NOT_LOGIN(5003,"还未登录"),
    USER_STATE_EXCEPTION(5004,"用户状态异常"),
    USER_EXIST(5005,"用户已存在"),
    USER_PHONE_ERROR(5006,"手机号码错误"),
    USER_HOUR_CODE_ERROR(5007,"一个小时内只能发送5次验证码"),
    USER_MIN_CODE_ERROR(5008,"验证码已发送，请勿重复发送"),
    USER_CODE_ERROR(5009,"验证码已过期或者验证码错误"),
    USER_PASSWORD_ERROR(5010,"已经错误3次了，请一个小时后再试");


    Integer code;
    String message;

    UserExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
